package com.xtxk.service.device;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.xtxk.common.constant.CommonConstant;

/**
 * 设备资源管理
 * @author tiger
 */
@Service
public class DeviceService {
	
	/**
	 * 添加设备信息
	 * @return
	 */
	public Map<String, Object> addDevice(){
		Map<String, Object> map = new HashMap<>();
		if (CommonConstant.status) {
			map.put("deviceID", "D000000000000032");
			return map;
		}
		return map;
	}
	
	/**
	 * 修改设备信息
	 * @return
	 */
	public Map<String, Object> editDevice(){
		Map<String, Object> map = new HashMap<>();
		return map;
	}
	
	/**
	 * 删除设备信息
	 * @return
	 */
	public Map<String, Object> removeDevice(String deviceID){
		Map<String, Object> map = new HashMap<>();
		if (CommonConstant.status) {
			map.put("deviceID", "D000000000000032");
			return map;
		}
		return map;
	}
}
